package demo2;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 殇
 * Date: 2025-06-02
 * Time: 17:09
 */
public class Derived extends Base{
    public int a=2;
    public int b;
    public int c;

    public void method1(){
        System.out.println("Drived:method1");
    }
    public void method1(int x){
        System.out.println("Drived:method1 "+x);
    }
    public void method2(){
        System.out.println("Drived:method2");
    }
    public  void test(){
        a=3;
        System.out.println(a);
        System.out.println(super.a);
        //method1();
        super.method1();

    }

    public static void main(String[] args) {
        Derived d=new Derived();
        d.test();
    }
}
